import { createSlice } from '@reduxjs/toolkit'
const order = createSlice({
    name: 'order',
    initialState: {
        a: 5
    },
    reducers: {
        //同步方法
        addA(state, action) {
            state.a++
        }
    }
})

export default order.reducer
export const { addA } = order.actions